package com.ruoyi.email.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 信箱对象 email_mailbox
 * 
 * @author cc
 * @date 2023-03-24
 */
public class EmailMailbox extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 邮件编号 */
    @Excel(name = "邮件编号")
    private Long emailId;

    /** 删除状态 */
    @Excel(name = "删除状态")
    private Long emailDelete;

    /** 删除标志 */
    private Long delFlag;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 邮件 信息 */
    private List<EmailLetter> emailLetterList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEmailId(Long emailId) 
    {
        this.emailId = emailId;
    }

    public Long getEmailId() 
    {
        return emailId;
    }
    public void setEmailDelete(Long emailDelete) 
    {
        this.emailDelete = emailDelete;
    }

    public Long getEmailDelete() 
    {
        return emailDelete;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    public List<EmailLetter> getEmailLetterList()
    {
        return emailLetterList;
    }

    public void setEmailLetterList(List<EmailLetter> emailLetterList)
    {
        this.emailLetterList = emailLetterList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("emailId", getEmailId())
            .append("emailDelete", getEmailDelete())
            .append("delFlag", getDelFlag())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("emailLetterList", getEmailLetterList())
            .toString();
    }
}
